/********************************************************************
	created:	2008/10/01
	created:	1:10:2008   10:43
	filename: 	h:\SimoneEngine\qianye\src\qylib\filesys\qyZipFileFilter.h
	author:		Xiong Jiayu
	copyright:  
	purpose:	
*********************************************************************/

#pragma once

#ifndef __QYZIPFILEFILTER_H__
#define __QYZIPFILEFILTER_H__

#include <unzip.h>
#include "../common/qyCommon.h"
#include "../memsys/qyString.h"

class qyFile;

/*
===========================================
class qyZipFileFilter
===========================================
*/
class qyZipFileFilter
{
public:
	qyZipFileFilter();
	~qyZipFileFilter();

	bool			LoadFileToMemory( const qyString &strAbsoluteFileName, qyFile &file );
	void			_SetupZip( unzFile handle );
protected:
	unzFile			m_handle;
};

QY_INLINE void qyZipFileFilter::_SetupZip( unzFile handle )
{
	m_handle = handle;
}

#endif
